Scanning Projectors And Image Capture Modules For 3D Mapping

ABSTRACT

Apparatus for mapping includes a radiation source, which is configured to emit a beam of radiation. A first scanning mirror is configured to receive and scan the emitted beam in a first direction over a selected angular range within a region of interest. A detector and optics define a sensing area of the detector. A second scanning mirror is configured to scan the sensing area over the selected angular range in the first direction in synchronization with the scanned beam from the radiation source. A scanner is configured to scan both the emitted beam and the sensing area over the region of interest in a second direction, which is perpendicular to the first direction. A processor is configured to process signals output by the detector in order to construct a three-dimensional (3D) map of an object in the region of interest.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 13/810,451, filed Jan. 16, 2013, in the national phase of PCT Patent Application PCT/IB2011/053560, filed Aug. 10, 2011, which claims the benefit of U.S. Provisional Patent Application 61/372,729, filed Aug. 11, 2010, and U.S. Provisional Patent Application 61/425,788, filed Dec. 22, 2010. All of these related applications are incorporated herein by reference.

FIELD OF THE INVENTION

The present invention relates generally to methods and devices for projection and capture of optical radiation, and particularly to projection and image capture for purposes of 3D mapping.

BACKGROUND

Various methods are known in the art for optical 3D mapping, i.e., generating a 3D profile of the surface of an object by processing an optical image of the object. This sort of 3D profile is also referred to as a 3D map, depth map or depth image, and 3D mapping is also referred to as depth mapping.

Some methods of 3D mapping are based on projecting a laser speckle pattern onto the object, and then analyzing an image of the pattern on the object. For example, PCT International Publication WO 2007/043036, whose disclosure is incorporated herein by reference, describes a system and method for object reconstruction in which a coherent light source and a generator of a random speckle pattern project onto the object a coherent random speckle pattern. An imaging unit detects the light response of the illuminated region and generates image data. Shifts of the pattern in the image of the object relative to a reference image of the pattern are used in real-time reconstruction of a 3D map of the object. Further methods for 3D mapping using speckle patterns are described, for example, in PCT International Publication WO 2007/105205, whose disclosure is also incorporated herein by reference.

Other methods of optical 3D mapping project different sorts of patterns onto the object to be mapped. For example, PCT International Publication WO 2008/120217, whose disclosure is incorporated herein by reference, describes an illumination assembly for 3D mapping that includes a single transparency containing a fixed pattern of spots. A light source transilluminates the transparency with optical radiation so as to project the pattern onto an object. An image capture assembly captures an image of the pattern on the object, and the image is processed so as to reconstruct a 3D map of the object.

SUMMARY

The embodiments of the present invention that are described hereinbelow provide methods and apparatus for efficient projection of patterns, particularly for 3D mapping, as well as for imaging of such projected patterns.

There is therefore provided, in accordance with an embodiment of the present invention, apparatus for mapping, which include an illumination module, including a radiation source, which is configured to emit a beam of radiation, and a scanner, which is configured to receive and scan the beam over a selected angular range. Illumination optics are configured to project the scanned beam so as to create a pattern of spots extending over a region of interest. An imaging module is configured to capture an image of the pattern that is projected onto an object in the region of interest. A processor is configured to process the image in order to construct a three-dimensional (3D) map of the object.

The pattern of the spots may be uncorrelated over a range of depths that is mapped by the apparatus.

In some embodiments, the radiation source is controlled so as to modulate an intensity of the beam while the scanner scans the beam, thereby creating the pattern of the spots on the region of interest. The illumination module may be configured to modify the pattern responsively to the image captured by the imaging module. The illumination module may be configured to control at least one of the radiation source and the scanner so as to modify an angular density of the spots in the array within a selected part of the region of interest. Alternatively or additionally, the illumination module may be configured to control at least one of the radiation source and the scanner so as to modify a brightness of the spots in a selected area with the region of interest.

In an alternative embodiment, the scanner is configured to scan the beam over a first angular range, and the optics include a beamsplitter, which is configured to create multiple, angularly-spaced replicas of the scanned beam, which together extend over a second angular range, which is greater than the first angular range. The scanner and the beamsplitter may be configured to tile the region of interest with the pattern created by the multiple, angularly-spaced replicas of the scanned beam.

In another embodiment, the optics include a patterned element, which is configured, when illuminated by the beam, to create the pattern over a first angular range, and the scanner is configured to direct the beam to strike the patterned element at multiple different angles in succession so as to create multiple, angularly-spaced replicas of the pattern, which together extend over a second angular range, which is greater than the first angular range. The scanner and the patterned element may be configured to tile the region of interest with the multiple, angularly-spaced replicas of the pattern.

In still another embodiment, the scanner is configured to scan the beam over a first angular range, and the optics include a scan-expanding element, which is configured to distribute the scanned beam so as to cover a second angular range, greater than the first angular range, with the spatial pattern. The scan-expanding element may be selected from a group of elements consisting of a convex reflector and a diffractive optical element.

In a disclosed embodiment, the illumination module includes at least one beam sensor, which is positioned at a selected angle within the angular range that is scanned by the scanner so as to receive the scanned beam periodically and verify thereby that the scanner is operating. Typically, the illumination module is configured to inhibit emission of the beam from the radiation source when the sensor fails to receive the scanned beam periodically.

In some embodiments, the radiation source includes a first radiation source, which emits an infrared beam, which is modulated to create the pattern of the spots, and a second radiation source, which emits a visible light beam, which is modulated to project a visible image onto the region of interest. The scanner and optics are configured to project both the infrared beam and the visible light beam onto the region of interest simultaneously. Typically, the second radiation source is controlled so as to project the visible image onto the object responsively to the 3D map.

In disclosed embodiments, the processor is arranged to derive the 3D map by finding respective offsets between the spots in areas of the captured image and corresponding reference spot locations belonging to a reference image of the pattern, wherein the respective offsets are indicative of respective distances between the areas and the image capture assembly. In some embodiments, the imaging module includes a position-sensitive detector, which is configured to sense and output an offset of each spot in the pattern on the object as the spot is projected by the illumination module. The imaging module may be configured to scan a field of view of the position-sensitive detector in synchronization with the scanner in the illumination module or together with the beam from the radiation source.

Alternatively or additionally, the illumination module and the imaging module are arranged so that the offsets occur in a first direction, and the imaging module includes an array of detector elements arranged in one or more rows extending in the first direction, and astigmatic optics, which are configured to image the pattern onto the array and have a greater optical power in the first direction than in a second, perpendicular direction.

In some embodiments, the imaging module includes a sensor and imaging optics, which define a sensing area that is scanned over the region of interest in synchronization with the scanned beam of the illumination module. The sensor may include an image sensor having a rolling shutter, wherein the rolling shutter is synchronized with the scanned beam. Additionally or alternatively, the scanner in the illumination module may be controllable to dynamically vary the selected angular range, and the imaging module may include an imaging scanner, which is configured to dynamically scan the sensing area to match the selected angular range of the scanned beam.

There is also provided, in accordance with an embodiment of the present invention, apparatus for mapping, which includes an illumination module, including a radiation source, which is configured to emit a beam of radiation having an intensity that varies according to a specified temporal modulation. A scanner is configured to receive and scan the beam over a region of interest, so as to project the radiation onto the region with a spatial intensity pattern determined by the temporal modulation of the beam. An imaging module is configured to capture an image of the spatial intensity pattern that is projected onto an object in the region of interest. A processor is configured to process the image in order to construct a three-dimensional (3D) map of the object.

In a disclosed embodiment, the temporal modulation is binary, and wherein the spatial intensity pattern includes an array of spots generated by the temporal modulation.

In one embodiment, the imaging module includes a sensor and imaging optics, which define a sensing area that is scanned over the region of interest in synchronization with the scanned beam of the illumination module.

There is additionally provided, in accordance with an embodiment of the present invention, a method for mapping, which includes scanning a beam of radiation over a selected angular range so as to create a pattern of spots extending over a region of interest. An image of the pattern that is projected onto an object in the region of interest is captured and processed in order to construct a three-dimensional (3D) map of the object.

There is further provided, in accordance with an embodiment of the present invention, a method for mapping, which includes generating a beam of radiation having an intensity that varies according to a specified temporal modulation. The beam is scanned over a region of interest, so as to project the radiation onto the region with a spatial intensity pattern determined by the temporal modulation of the beam. An image of the spatial intensity pattern that is projected onto an object in the region of interest is captured and processed in order to construct a three-dimensional (3D) map of the object.

The present invention will be more fully understood from the following detailed description of the embodiments thereof, taken together with the drawings in which:

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic top view of a system for 3D mapping, in accordance with an embodiment of the present invention;

FIGS. 2A and 2B are schematic top views of an illumination module in two different phases of operation, in accordance with an embodiment of the present invention;

FIG. 2C is a schematic frontal view of a pattern projected by the module of FIGS. 2A and 2B, in accordance with an embodiment of the present invention;

FIGS. 3-5 are schematic top views of illumination modules, in accordance with other embodiments of the present invention;

FIG. 6 is a schematic, pictorial view of a 3D mapping system in operation, in accordance with an embodiment of the present invention;

FIG. 7 is a schematic top view of an illumination module, in accordance with yet another embodiment of the present invention;

FIGS. 8 and 9 are schematic, pictorial views of imaging modules, in accordance with embodiments of the present invention; and

FIG. 10 is a schematic, pictorial view of a 3D mapping device, in accordance with an embodiment of the present invention.

DETAILED DESCRIPTION OF EMBODIMENTS

The embodiments of the present invention that are described hereinbelow provide, inter alia, methods and apparatus for efficient projection of patterns, particularly for 3D mapping, as well as for efficient imaging of such projected patterns.

In some embodiments of the present invention, an illumination module projects a pattern of spots onto a region of interest, and an imaging module captures an image of the pattern appearing on objects in the region. This image is processed in order to find the locations of the spots in the image and, on this basis, to construct a 3D map of an object in the region of interest. The depth coordinates in the map are computed by triangulation, typically based on the offsets of the spots in the image relative to corresponding reference spot locations in a reference image of the pattern.

In the disclosed embodiments, the pattern is projected dynamically, i.e., it is not projected all at once over the entire region, but is rather created by scanning a beam emitted by a radiation source. The beam is scanned over a selected angular range. (Some of the disclosed embodiments are directed to controlling and/or expanding this range.) The intensity of the beam is typically modulated during the scan in order to create the desired pattern. The scan is “dynamic” in the sense that aspects of the pattern, such as its density, brightness, and/or angular range, may be modified in the course of mapping a given scene. Although the embodiments described hereinbelow are drawn specifically to spot patterns, the principles of the present invention may similarly be applied in creating patterns of other sorts for purposes of 3D mapping.

This dynamic scanning approach is advantageous in a number of important respects. For example, dynamic scanning in this manner affords flexibility in creation of the pattern, particularly in that the pattern can be modified on the basis of the image of the region of interest. For example, the angular density of the spots in the pattern and/or the brightness of the spots can be varied in different areas, depending on scene conditions and features of objects of interest in the scene.

The imaging module can likewise be operated dynamically in conjunction with the scan of the illuminating beam, so that the active field of view of the imaging module tracks the area of the pattern that is actually illuminated at any point in the scan. The image thus created of the region of interest is not necessarily captured all at once, as in conventional image sensors, but may be assembled electronically based on local signals captured by a detector during the scan, as a part of the process of creating the 3D map. Concentrating the illumination and detection resources in a small, moving area in this way can enhance the signal/background ratio of the detected pattern and hence improve the accuracy of 3D mapping. The field of view of the imaging module can track the scan of the illuminating beam optically, possibly using (at least in part) the same scanner as the illumination module, or electronically, using an image sensor with a rolling shutter, for example.

Some of the embodiments described below are directed to expanding the angular range of the scan provided by the illumination module. These embodiments address the need of some 3D mapping systems for a wide field of view, which is much larger than the scan range of some conventional scanners. In one such embodiment, the optics of the projection module comprise a beamsplitter, which simultaneously creates multiple, angularly-spaced replicas of the scanned beam. These replicas together extend over a larger angular range than the scan range. In another embodiment, the scanner directs the beam from the radiation source to strike a patterned element at multiple different angles in succession, and thus to create multiple, angularly-spaced replicas of the pattern. In either case, the elements of the illumination module may be configured to tile the region of interest with the pattern in this manner, i.e., to cover the region with adjacent replicas of the pattern, without significant overlap or gaps between the replicas. (In this context, gaps or overlaps are considered “significant” if they are on the order of the spacing between the spots or larger than this order.)

Alternatively or additionally, the illumination module may comprise a scan-expanding element, such as a convex reflector or a diffractive optical element (DOE), which expands the angular range covered by the scanned beam.

Other applications of and variations on the elements of a 3D mapping system using a scanned radiation source are described hereinbelow.

System Description

FIG. 1 is a schematic top view of system 20 for 3D mapping, in accordance with an embodiment of the present invention. System 20 is built around a mapping device 22, which is configured to capture images and generate 3D maps of a scene. The scene here includes an object 28, such as the hand of a user of the device. The depth information in the 3D maps generated by device 22 may be used, for example, by a host computer (not shown) as part of a 3D user interface, which enables the user to interact with games and other applications running on the computer and with elements shown on a display screen. (This sort of functionality is described, for instance, in U.S. Patent Application Publication 2009/0183125, whose disclosure is incorporated herein by reference.) This particular application of device 22 is mentioned here only by way of example, however, and the mapping capabilities of the device may be used for other purposes, as well, and applied to substantially any suitable types of scenes and 3D objects.

In the example shown in FIG. 1, an illumination module 30 in mapping device 22 projects a pattern of optical radiation onto object 28, as will be explained in detail hereinbelow. The optical radiation that is used for this purpose is typically in the infrared (IR) range, but visible or ultraviolet light may similarly be used. (In one embodiment, which is shown in FIG. 7, an illumination module projects both IR and visible radiation.) An imaging module 38 captures and decodes images of the pattern on the object in order to generate a digital shift value for each pixel in the image. The shift value represents the offset between an element of the pattern (typically a spot) in the area of each pixel in the captured image and a reference location of the corresponding pattern element in a reference image of the pattern. These offsets are indicative of respective distances between the point in the actual scene corresponding to the pixel and the image capture assembly. Alternatively, module 38 may output raw pixel values, and the shift values may be computed by another component of device 22 or by the host computer.

A processor 46 in device 22 processes the shift values (after computing the shift values from the raw pixel values output by module 38 if necessary) in order to generate a depth map of the region of interest that is illuminated and imaged by device 22. The depth map comprises an array of 3D coordinates, comprising a depth (Z) coordinate value of the object surface at each point (X,Y) within a predefined field of view. (In the context of an array of image-related data, these (X,Y) points are also referred to as pixels.) In the present embodiment, the processor computes the 3D coordinates of points on the surface of the object 28 by triangulation, based on the transverse shift of the pattern at each pixel. The principles of such triangulation computations are described, for example, in the above-mentioned PCT publications WO 2007/043036, WO 2007/105205 and WO 2008/120217.

In alternative embodiments, elements of device 22 may be used, mutatis mutandis, in other types of depth mapping systems, such as systems that are based on measurement of the time of flight of light pulses to and from the scene of interest or stereoscopic systems, as well as in other sorts of applications that use projected beams.

In FIG. 1, the X-axis is taken to be the horizontal direction along the front of device 22, the Y-axis is the vertical direction (out of the page in this view), and the Z-axis extends away from device 22 in the general direction of the object being imaged by the assembly. The optical axes of modules 30 and 38 are parallel to the Z-axis, with respective pupils on the X-axis at a known distance apart. In this configuration, the transverse shift of the pattern in the images captured by module 38 will be exclusively (to within tolerance errors) in the X-direction, as explained in the above-mentioned PCT publications.

As noted above, illumination module 30 illuminates the scene of interest with a pattern of spots, such as an uncorrelated pattern of spots. In the context of the present patent application and in the claims, the term “uncorrelated pattern” refers to a projected pattern of spots (which may be bright or dark), whose positions are uncorrelated in planes transverse to the projection beam axis. The positions are uncorrelated in the sense that the auto-correlation of the pattern as a function of transverse shift is insignificant for any shift that is larger than the spot size and no greater than the maximum shift that may occur over the range of depths mapped by the system. Random, pseudo-random and quasi-periodic patterns are typically uncorrelated to the extent specified by the above definition.

To generate the pattern of spots, module 30 typically comprises a suitable radiation source 32, such as a collimated diode laser or a light-emitting diode (LED) or other light source with a radiation beam of appropriate shape. The beam is scanned over a range of angles by a suitable scanner 34 and illumination optics 35. The beam is modulated during the scan in order to generate the pattern. For example, the beam may be temporally modulated by turning source 32 on and off to create a binary pattern of spots or other forms. Optics 35 typically comprise one or more lenses and/or other optical components, which may take various different forms in different embodiments, as described below. The pattern is projected onto the scene over a certain angular range, which defines a projection field of view (FOV) 36, thus converting the temporal modulation of source 32 into a desired spatial intensity pattern extending over objects in the region of interest of system 20.

In the disclosed embodiments, scanner 34 comprises a scanning mirror 50 with a mechanical scan drive, although other types of scanners (such as acousto-optical scanners) may alternatively be used. Scanner 34 may comprise, for example, a bi-directional scanning mirror or a pair of uni-directional scanning mirrors. Such mirrors may be based on integrated micro-electromechanical systems (MEMS) technology. Scanning mirrors of this sort are produced by a number of manufacturers, such as Microvision, Inc. (Redmond, Wash.).

Imaging module 38 typically comprises objective optics 42, which form an image on a sensor 40 of the projected pattern appearing on the scene in the region of interest. In the example pictured in FIG. 1, sensor 40 comprises a CMOS image sensor, comprising a two-dimensional matrix of detector elements 41. The rows and columns of the matrix are aligned with the X and Y axes. Alternatively, other types of sensors may be used in module 38, as described below. Sensor 40 and objective optics 42 define an imaging field of view 44, which is typically contained within FOV 36 in the region of interest of device 22. Although sensor 40 is shown in FIG. 1 as having roughly equal numbers of rows and columns of detector elements 41, in other embodiments, which are described hereinbelow, the sensor may comprise only a small number of rows, or even only a single row or a single position-sensitive detector element.

As noted above, radiation source 32 typically emits IR radiation. Sensor 40 may comprise a monochrome sensor, without an IR-cutoff filter, in order to detect the image of the projected pattern with high sensitivity. To enhance the contrast of the image captured by sensor 40, optics 42 or the sensor itself may comprise a bandpass filter (not shown), which passes the wavelength of radiation source 32 while blocking ambient radiation in other bands.

Processor 46 typically comprises an embedded microprocessor, which is programmed in software (or firmware) to carry out the processing and control functions that are described herein. The processor may, for example, dynamically control illumination module 30 and/or imaging module 38 to adjust parameters such as the pattern density, brightness, and angular extent, as described in detail hereinbelow. A memory 48 may hold program code, lookup tables, and/or interim computational results. Alternatively or additionally, processor 46 may comprise programmable hardware logic circuits for carrying out some or all of its functions. Details of the implementation of a depth mapping processor, which may be applied to processor 46, are provided in U.S. Patent Application Publication 2010/0007717, whose disclosure is incorporated herein by reference.

Scanning Illumination Modules

FIGS. 2A and 2B are schematic top views of illumination module 30 in two different phases of operation, in accordance with an embodiment of the present invention. In this embodiment, radiation source 32 comprises a laser diode 52 and a collimating lens 54. The beam from the radiation source is scanned by scanning mirror 50 over a range of angles, which is limited by the mechanical and optical properties of the scanner. (The scanning mechanism is omitted from this and subsequent figures for the sake of simplicity.) FIG. 2A shows the mirror at roughly the center of the scan, while in FIG. 2B the mirror is at its most extreme deflection. This deflection defines the maximal angular range that can be covered by the scanned beam.

To expand this range, a beamsplitter 55, such as a suitable diffractive optical element (DOE), splits the scanned beam to create multiple, angularly-spaced replicas 56, 58, 60 of the scanned beam. (In the absence of the beamsplitter, module 30 would project only beam 56.) As mirror 50 scans the radiation beam, replicas 56, 58, 60 sweep in parallel over the region of interest, covering an angular range that is greater than the scan range provided by the scanner alone. Although for the sake of simplicity, FIGS. 2A and 2B show three replica beams, beamsplitter 55 may alternatively be configured to give only two replica beams or to give a larger number of replica beams. In general, beamsplitter 55 can be configured to generate substantially any array of m×n beam replicas, in substantially any desired layout, depending on the application requirements.

FIG. 2C is a schematic frontal view of the radiation pattern projected by the illumination module of FIGS. 2A and 2B, in accordance with an embodiment of the present invention. On/off modulation of laser diode 52 causes each beam replica 56, 58, 60, . . . , to create a respective pattern 64 of spots 66 within a corresponding sub-area of field of view 36. The fan-out angle of beamsplitter 55 and the angular scanning range of scanner 34 are typically chosen so that patterns 64 tile the region of interest, with substantially no holes and no overlap between the patterns. This sort of tiling arrangement can be used efficiently to project patterns over a wide angular range in 3D mapping systems. Alternatively, the fan-out angle and scanning range may be chosen so that patterns 64 overlap. The patterns may be spot patterns, as in the pictured embodiment, or may comprise other types of structured light.

FIG. 3 is a schematic side view of illumination module 30, in accordance with an alternative embodiment of the present invention. This embodiment may be used to create the same sort of tiled pattern that is shown in FIG. 2C. It differs from the other embodiments described here, however, in that it uses a diffractive optical element (DOE) 70 as a spatial modulator to create the patterned illumination of the scene, in conjunction with scanning mirror 50. As a result of this arrangement, the demands on mirror 50 are reduced, so that a much slower scan rate is possible, or mirror 50 may simply jump between discrete positions, and illumination source 32 can be pulsed on and off at a much slower rate.

In terms of optical principles, this embodiment is similar to DOE-based schemes that are described in U.S. Patent Application Publications 2009/0185274 and 2010/0284082, both of which are incorporated herein by reference. These publications describe methods for creating diffraction patterns using a pair of DOEs, one of which splits an input beam into a matrix of output beams, while the other applies a pattern to each of the output beams. The two DOEs together thus project radiation onto a region in space in multiple adjacent instances of the pattern.

In the present embodiment, the scan pattern of mirror 50 takes the place of one of the DOEs in splitting the input beam from radiation source 32 into multiple intermediate beams 72. For this purpose, mirror 50 scans in the X- and Y-directions to each of a matrix of predetermined angles and dwells at each of these angles for a certain period of time, typically on the order of a few milliseconds. Each dwell point defines a beam 72. DOE 70 diffracts each of beams 72 into a patterned output beam 74, along a respective axis 76. The fan-out angle between axes 76 and the divergence angle of beams 74 may be chosen (by appropriate design of DOE 70 and of the scan pattern of mirror 50) so that beams 74 tile field of view 36, in the manner shown in FIG. 2C.

The embodiment of FIG. 3 may operate in conjunction with various types of image capture modules 38, as described below. Because beams 74 are illuminated in sequence, it is desirable that the image capture pattern of module 38 be synchronized with the illumination sequence in order to maximize the signal/background ratio in the captured images of the scene of interest. Certain types of image sensors, such as CMOS sensors, have a rolling shutter, which may be synchronized with the illumination sequence using techniques that are described, for example, in U.S. patent application Ser. No. 12/762,373, filed Apr. 19, 2010, whose disclosure is incorporated herein by reference.

FIG. 4 is a schematic side view of illumination module 30, in accordance with another embodiment of the present invention. Assuming source 32 to be a laser, the beam it emits is intense and should be scanned continuously by mirror 50 to ensure eye safety. In normal operation of module 30, source 32 emits the beam only while mirror 50 is moving, so that the dwell time at all locations in field of view 36 is short and therefore does not pose any danger to the eye. If the mechanism that drives mirror 50 sticks or otherwise malfunctions, however, the beam may dwell at one location for an extended period.

To avoid this eventuality, module 30 comprises one or more beam sensors 80, 82, . . . , such as photodiodes, which are coupled to processor 46 (not shown in this figure). These sensors are positioned at a selected angle or angles within the angular range that is scanned by mirror so as to receive the scanned beam periodically and thus verify that the scanner is operating. In this example, two sensors are shown on opposite sides of FOV 36, but a single safety sensor or a larger number of such sensors may alternatively be used.

The mechanism that drives mirror 50 may be programmed, for example, to direct the beam from source 32 toward sensor 80 at the beginning of each scan and toward sensor 82 at the end of each scan. When the beam strikes one of the sensors, that sensor outputs a pulse to processor 46. The processor monitors the pulses and tracks the time elapsed from pulse to pulse. If the time exceeds a preset maximum, the processor will immediately inhibit emission of the beam from radiation source 32 (typically by simply shutting it off). This sort of timing event will occur if mirror 50 gets stuck at a given location. Thus, in such a case, the beam from module 30 will be immediately shut off, and any potential safety hazard will be averted.

FIG. 5 is a schematic side view of projection module 30, in accordance with yet another embodiment of the present invention. This embodiment is directed particularly toward expanding FOV 36 relative to the scanning range of mirror 50. It addresses the problem that in certain technologies, such as MEMS, the scanning range of mirror 50 is small, while some 3D mapping applications call for mapping over a wide field.

In the pictured embodiment, mirror 50 scans over an angular range equal to α_(mirror)/2, giving an initial FOV of width α_(mirror), typically on the order of 10-30°. The beam from mirror 50 strikes a scan-expanding element—in this case a convex reflector 88—which expands the beam range so that FOV 36 has width α_(out), which may be on the order of 60-120°. For two-dimensional (X-Y) scanning, element 60 may be spherical, or it may have a surface with different radii of curvature in the X and Y directions in order to generate a field of view that is wider in one dimension than the other, or it may have some other aspheric shape. Alternatively, the scan-expanding reflector may be replaced by a DOE or a refractive element (not shown) with similar scan-expanding properties. Further alternatively, the function of reflector 88 may be fulfilled by a combination of optical elements of the same or different types.

FIG. 6 is a schematic, pictorial view of a 3D mapping system 90 in operation, in accordance with an embodiment of the present invention. In this system, device 22 is used in conjunction with a game console 92 to operate an interactive game, with two participants 94 and 96. For this purpose, device 22 projects a pattern of spots 100 onto objects in its field of view, including the participants and a background 98, such as the wall (and other elements) of the room in which system 90 is located. Device 22 captures and processes an image of the pattern, as explained above, in order to create a 3D map of the participants and other objects in the scene. Console 92 controls the game in response to the participants' body movements, which are detected by device 22 or console 92 by segmenting and analyzing changes in the 3D map.

System 90 is shown here in order to exemplify some of the difficulties that may be encountered by 3D mapping systems. Objects in the mapped scene may vary greatly in size, and frequently small objects (such as the participants' hands, legs and heads) move and change their apparent form quickly. Furthermore, it is often just these objects that need to be mapped accurately for purposes of the game running on console 92 and other interactive applications. At the same time, different objects in the region of interest may reflect the patterned illumination back to device 22 with widely-varying intensity, due both to variations in reflectance and to large differences in distance from the device. As a result, some areas of the pattern in the images captured by imaging module 38 may be too dim to give accurate depth readings.

To overcome these problems, illumination module 30 in device 22, projects the pattern adaptively, changing the density and/or brightness of the pattern in response to the geometry of the scene. The information about scene geometry is provided by the images captured by imaging module 38 and/or by the 3D maps that are generated by processing these images. Thus, radiation source 32 and scanner 34 are controlled dynamically, during operation of system 90, to project spots 100 with greater density on objects of importance that are either small or rapidly varying, or otherwise require closer attention or better depth coverage, such as the bodies of participants 94 and 96. On the other hand, large smooth objects, such as background 98, are covered with a sparser pattern. Device 22 may adjust the pattern density adaptively in successive images, in response to changes in the scene.

Additionally or alternatively, device 22 may adjust the output power of radiation source 32 dynamically, in order to compensate for variations in distance and reflectivity within the captured scene. Thus, illumination module may project spots with greater brightness toward objects that have low reflectivity or are far from device 22, such as background 98, while reducing the projected power on bright, nearby objects. Alternatively or additionally, the local scanning speed of the mirror, and thus the dwell time at each location in the scan range, may be controlled to give longer local dwell time, and hence greater local projected energy, in areas requiring greater illumination. These sorts of adaptive power control enhance the dynamic range of system 90 and optimizes the use of available radiation power.

As a further aspect of the dynamic operation of system 90 (not illustrated in FIG. 6), the angular ranges of the illumination and imaging modules in device 22 may also be adjusted dynamically. For example, after first capturing a wide-angle image and creating a wide-angle, low-resolution 3D map of the region of interest, device 22 may be controlled to zoom in on particular objects that have been identified within the region. Thus, the angular scan range of the projected pattern and sensing range of the imaging module may be reduced to provide higher-resolution depth maps of the bodies of participants 94 and 96. As the participants move within the scene, the scan and sensing ranges may be adjusted accordingly.

FIG. 7 is a schematic side view of an illumination module 110, in accordance with still another embodiment of the present invention. Module 110 may be used in place of module 30 in device 22 (FIG. 1), and offers added capabilities in using the same scanning hardware to simultaneously project both the IR pattern (for 3D mapping) and visible content that can be viewed by a user of the device.

In this sort of embodiment, device 22 may create a 3D map of a given object using the IR pattern, and may then project onto the object a visible image that is tailored to the shape and contours of the object. This sort of capability is useful, for example, in presenting user interface graphics and text, and particularly in “augmented reality” applications (for which device 22 may even be integrated into goggles worn by the user so that mapping and visible image projection are aligned with the user's field of view). Applications of this sort are described, for example, in PCT Patent Application PCT/IB2011/053192, filed Jul. 18, 2011, whose disclosure is incorporated herein by reference.

As shown in FIG. 7, a beam combiner 114, such as a dichroic reflector, aligns the IR beam from radiation source 32 with a visible beam from a visible light source 112. Source 112 may be monochromatic or polychromatic. For example, source 112 may comprise a suitable laser diode or LED for monochromatic illumination, or it may comprise multiple laser diodes or LEDs of different colors (not shown), whose beams are modulated and combined in order to project the desired color at each point in the field of view. For this latter purpose, combiner 114 may comprise two or more dichroic elements (not shown) in order to align all of the different colored and IR beams.

As mirror 50 scans over FOV 36, processor 46 modulates sources 32 and 72 simultaneously: Source 32 is modulated to generate the desired pattern for 3D mapping at each point in the field, while source 112 is modulated according to the pixel value (intensity and possibly color) of the visible image that is to be projected at the same point (which may be based on the 3D map of the object at that point). Because the visible and IR beams are optically aligned and coaxial, the visible image will be automatically registered with the 3D map.

Image Capture Configurations

FIG. 8 is a schematic pictorial view of imaging module 38, in accordance with an embodiment of the present invention. This embodiment takes advantage of synchronization between the scan pattern of illumination module 30 and the readout pattern of the imaging module. This synchronization makes it possible to use an image sensor 120 with a relatively small number of rows 122 of detector elements 41 relative to the number of columns. In other words, the image sensor itself has low resolution in the Y-direction (the vertical direction in the figure), but high resolution in the X-direction. In the pictured embodiment, image sensor 80 has less than ten rows and may have, for example, one thousand or more columns. Alternatively, the image sensor may have larger or smaller numbers of rows, but still far fewer rows than columns.

Objective optics 42 comprise an astigmatic imaging element, which maps field of view 44 onto image sensor 120. Optics 42 have larger magnification in the Y-direction than in the X-direction, so that each row 122 of the image sensor captures light from a corresponding rectangular area 124 in the field of view. For example, the aspect ratio of each rectangular area 124 may be on the order of 10:1 (X:Y), while rows 122 have an aspect ratio on the order of 1000:1. The different X- and Y-magnifications of optics 42 may be chosen in any desired ratio, depending on the number of rows and columns in the image sensor and the desired dimensions of the field of view. In one embodiment, for example, optics 42 may comprise a cylindrical lens, and sensor 120 may comprise only a single row of detector elements.

Illumination module 30 scans the beam from radiation source 32 over field of view 44 in a raster pattern, covering each of areas 124 with multiple horizontal scan lines. As each line in a given area 124 is scanned by the spot from the illumination module, the corresponding row 122 captures the radiation reflected from the scene. Readout from sensor 120 is synchronized with the illumination scan, so that the rows 122 of detector elements 41 are read out substantially only when the corresponding areas 124 in the scene are illuminated by the scan. As a result, the length of time during which each row 122 integrates ambient light for each readout is reduced, and the signal/ambient ratio in the output of sensor 120 is thus enhanced.

The resolution of the images captured by module 38 in this embodiment is governed by the resolution of the illumination scan, as each row 122 of sensor 120 is read out multiple times in synchronization with the scan. In other words, the first row is scanned multiple times while illumination module scans the corresponding area 124, followed by multiple scans of the second line, then the third line, etc. For example, if the first row in the image sensor is responsible for capturing the first hundred scan lines of the illumination module ( 1/10 of the vertical FOV), then it is scanned one hundred times before the second line is scanned. For this purpose, sensor 120 includes suitable readout circuits (not shown), similar to the readout circuits in a conventional, full-resolution CMOS image sensor, for example. Alternatively, a vertical fan-out element may be used on the illumination side, and the lines of the image sensor may scan simultaneously, each synchronized with the corresponding illumination scan.

Alternatively, the scanning of image sensor 120 may be vertically multiplexed in synchronization with the illumination scan. In this scheme, for example, using an imaging sensor with one hundred rows, the first row of the image sensor captures, for example, the first, 101^(st), 201^(st), 301^(st) scan line, etc., of the illumination scan. Additionally or alternatively, imaging module 38 may implement the sort of spatially-multiplexed imaging schemes that are described, for example, in U.S. Provisional Patent Application 61/419,891, filed Dec. 6, 2010, whose disclosure is incorporated herein by reference. A combination of the above scanning techniques can also be used.

The arrangement of image capture module 38 that is shown in FIG. 8 maintains full resolution in the X-direction, while relying on the synchronized scan of illumination module 30 to provide Y-direction resolution. This embodiment thus allows image sensor 120 to be made smaller and less costly, with simpler readout circuits, while potentially affording increased resolution in the X-direction. This X-resolution is useful, since in the configuration shown in FIG. 1, only the X-direction shift of the pattern in images captured by module 38 is indicative of depth variations within the scene, as explained above. The high resolution in the X-direction thus provides accurate readings of spot offset, which in turn enable accurate computation of depth coordinates.

FIG. 9 is a schematic pictorial view of imaging module 38, in accordance with another embodiment of the present invention. This embodiment also takes advantage of synchronization between the scan pattern of illumination module 30 and the readout pattern of the imaging module. In this case, however, field of view 44 of imaging module 38 is actively scanned.

In the embodiment of FIG. 9, image capture module 38 comprises a position-sensitive detector 130, which is configured to sense and output an X-offset of each spot in the pattern that is projected onto on the object by illumination module 30. In other words, as module 30 projects each spot in turn onto the corresponding location in the region of interest, detector 130 senses its image and indicates its respective offset from the corresponding reference spot location (and thus the depth coordinate in the scene at that location). Detector 130 is shown in the figure as a line-scan sensor 90 with a single row of detector elements 41 extending in the X-direction. Alternatively, position-sensitive detector 130 may comprise a unitary detector element with an analog readout indicating the location of the spot that is currently imaged onto the detector.

In the pictured embodiment, objective optics 42 map a rectangular area 134 in field of view 44 onto the row of detector elements 41 in sensor 130. Optics 42 may, as in the preceding embodiment, be astigmatic, with greater optical power in the X-direction than in the Y-direction, so that area 134 has a lower aspect ratio (X:Y) than the row of detector elements in the sensor. A scanning mirror 132 scans area 134 over field of view 44 in the Y-direction, in synchronization with the raster scan of illumination module 30, so that area 134 always contains the horizontal line that is currently under patterned illumination. In this manner, the image capture module captures an image of the pattern on the scene with high resolution and high signal/ambient ratio, while using a simple one-dimensional sensor.

FIG. 10 is a schematic, pictorial view of a 3D mapping device 140, in accordance with still another embodiment of the present invention. In this embodiment, the fields of view of an illumination module 142 and an imaging module 144 are jointly scanned in the Y-direction by a common mirror 150. Illumination module 142 comprises radiation source 32 and a beam scanner, in the form of a scanning mirror 152, which scans the radiation beam in the X-direction. Imaging module 144 comprises a detector 154, whose field of view is scanned in the X-direction by an imaging scanner comprising a scanning mirror 156, in synchronization with scanning mirror 152. Projection optics 146 project the illumination beam onto the region of interest of device 140 in order to create the desired pattern of spots on objects in the scene, and objective optics 148 image the spots onto detector 154.

The sensing area of imaging module 144 is thus scanned over the region of interest in synchronization with the scanned beam of illumination module 142. Detector 154 may comprise, for example, a position-sensitive detector as in the embodiment of FIG. 9 or a small-area image sensor, with detector elements arranged in rows and columns. As in the preceding embodiments, imaging module 144 provides measurements of spot offset, which may then be processed to generate a depth map. Although mirror 150 in FIG. 10 is conveniently shared by both the illumination and imaging modules, each module may alternatively have its own, synchronized Y-direction scanning mirror. In this latter case, all the mirrors in device 140 could be produced using MEMS technology. As the Y-direction scan is relatively slow, however, the single mirror 150 with a stepped drive is feasible for this application and is advantageous in maintaining precise synchronization.

The arrangement shown in FIG. 10 can be used to implement dynamic control not only of the spot density and brightness in the projected pattern, but also of the scan area, as explained above. Mirrors 150 and 152 may be operated to vary the angular range over which the illumination beam is scanned, and mirrors 150 and 156 will then scan the sensing area of detector 154 to match the angular range of the scanned beam. In this way, for example, device 140 may first be operated to capture a coarse 3D map of an entire scene, covering a wide angular range. The 3D map may be segmented in order to identify an object of interest, and the scan ranges of the illumination and imaging assemblies may then be dynamically adjusted to capture and map only the area of the object with high resolution. Other applications of this sort of dynamic control will be apparent to those skilled in the art and are considered to be within the scope of the present invention.

A number of specific ways to enhance scanning architectures for pattern projection and image capture have been shown and described above. These embodiments illustrate, by way of example, how aspects of the present invention can be used, inter alia, to improve eye safety, to increase field of view, to simultaneously use the same scanning hardware to project both IR patterns and visible content, and to reduce the size of the imaging module by synchronizing it with the illumination module. Alternative implementations and combinations of the above embodiments are also considered to be within the scope of the present invention. Such schemes may use various combinations of scanning projection for 3D mapping, as well as projection of visible information; diffractive optics to shape or split the scanning beam; refractive and/or diffractive optics to enlarge the field of view of the projection system; and synchronized scanning of projection and image capture.

It will thus be appreciated that the embodiments described above are cited by way of example, and that the present invention is not limited to what has been particularly shown and described hereinabove. Rather, the scope of the present invention includes both combinations and subcombinations of the various features described hereinabove, as well as variations and modifications thereof which would occur to persons skilled in the art upon reading the foregoing description and which are not disclosed in the prior art. 

1. Apparatus for mapping, comprising: a radiation source, which is configured to emit a beam of radiation; a first scanning mirror, which is configured to receive and scan the emitted beam in a first direction over a selected angular range within a region of interest; a detector and optics, which define a sensing area of the detector; a second scanning mirror, which is configured to scan the sensing area over the selected angular range in the first direction in synchronization with the scanned beam from the radiation source; a scanner, which is configured to scan both the emitted beam and the sensing area over the region of interest in a second direction, which is perpendicular to the first direction; and a processor, which is configured to process signals output by the detector in order to construct a three-dimensional (3D) map of an object in the region of interest.
 2. The apparatus according to claim 1, wherein the first and second scanning mirrors scan over the region of interest at a first speed, and the scanner scans over the region of interest at a second speed, which is slower than the first speed.
 3. The apparatus according to claim 1, wherein the processor is configured to control the scanning mirrors dynamically so as to modify a scan area of the apparatus.
 4. The apparatus according to claim 3, wherein the processor is configured to identify the object in a first 3D map of the region of interest, and to adjust a scan range of the scanning mirrors based on the first 3D map so as to map the identified object with high resolution in a second 3D map.
 5. The apparatus according to claim 1, wherein the scanner comprises a third scanning mirror.
 6. The apparatus according to claim 1, wherein the scanning mirrors are configured to scan the beam over a first angular range, and wherein the optics comprise a scan-expanding element, which is configured to distribute the scanned beam so as to cover a second angular range, greater than the first angular range.
 7. The apparatus according to claim 6, wherein the scan-expanding element is selected from a group of elements consisting of a convex reflector and a diffractive optical element.
 8. The apparatus according to claim 1, and comprising at least one beam sensor, which is positioned at a selected angle within the angular range so as to receive the scanned beam periodically and verify thereby that at least the first scanning mirror is operating.
 9. The apparatus according to claim 8, wherein the processor is configured to inhibit emission of the beam from the radiation source when the beam sensor fails to receive the scanned beam periodically.
 10. The apparatus according to claim 1, wherein the first scanning mirror is controllable to dynamically vary the selected angular range, and wherein the second scanning mirror is configured to dynamically scan the sensing area to match the selected angular range of the scanned beam.
 11. A method for mapping, comprising: using a first scanning mirror, scanning a beam of radiation in a first direction over a selected angular range within a region of interest; using a second scanning mirror, scanning a sensing area of a detector over the selected angular range in the first direction in synchronization with the scanned beam from the radiation source; scanning both the beam of radiation and the sensing area over the region of interest in a second direction, which is perpendicular to the first direction; and processing signals output by the detector in order to construct a three-dimensional (3D) map of an object in the region of interest.
 12. The method according to claim 11, wherein scanning the beam of radiation and scanning the sensing area comprise scanning the first and second scanning mirrors over the region of interest in the first direction at a first speed, and wherein scanning both the beam of radiation and the sensing area comprises scanning the beam of radiation and the sensing area over the region of interest in the second direction at a second speed, which is slower than the first speed.
 13. The method according to claim 11, wherein scanning the beam of radiation and scanning the sensing area comprise scanning the first and second scanning mirrors dynamically so as to modify a scan area of the 3D map.
 14. The method according to claim 13, and comprising identifying the object in a first 3D map of the region of interest, and adjusting a scan range of the scanning mirrors based on the first 3D map so as to map the identified object with high resolution in a second 3D map.
 15. The method according to claim 11, wherein scanning both the beam of radiation and the sensing area over the region of interest in a second direction comprises using a third scanning mirror, which rotates in the second direction, to scan both the beam of radiation and the sensing area.
 16. The method according to claim 11, wherein the scanning mirrors are configured to scan the beam over a first angular range, and wherein the method comprises applying a scan-expanding optical element to distribute the scanned beam so as to cover a second angular range, greater than the first angular range.
 17. The method according to claim 16, wherein the scan-expanding element is selected from a group of elements consisting of a convex reflector and a diffractive optical element.
 18. The method according to claim 11, and comprising positioning at least one beam sensor at a selected angle within the angular range so as to receive the scanned beam periodically and verify thereby that at least the first scanning mirror is operating.
 19. The method according to claim 18, wherein and comprising inhibiting emission of the beam when the beam sensor fails to receive the scanned beam periodically.
 20. The method according to claim 11, wherein scanning the beam of radiation in the first direction comprises dynamically varying the selected angular range, and wherein scanning the sensing area comprises dynamically scanning the sensing area to match the selected angular range of the scanned beam. 